]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: let PAM message wrap if longer than entry
authorRay Strode <rstrode@redhat.com>
Sun, 28 Jul 2013 16:40:55 +0000 (12:40 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 29 Jul 2013 21:25:41 +0000 (17:25 -0400)
Right now the whole authPrompt spreads out if a PAM message
comes in that longer than the entry.

This commit changes it to wrap instead, by forcing the
auth prompt to be a fixed width (slightly bigger than
the entry width was sized to previously).

https://bugzilla.gnome.org/show_bug.cgi?id=705037

data/theme/gnome-shell.css
js/gdm/authPrompt.js

index 0ce1ca817cc3bcbea0f53d829c965d1f8771ae03..84768b12e916bc4ac89acea7b3035b3fc82009d9 100644 (file)
@@ -2345,6 +2345,7 @@ StScrollBar StButton#vhandle:active {
     padding-top: 24px;
     padding-bottom: 12px;
     spacing: 8px;
+    width: 23em;
 }
 
 .login-dialog-prompt-label {
@@ -2352,10 +2353,6 @@ StScrollBar StButton#vhandle:active {
     font-size: 14px;
 }
 
-.login-dialog-prompt-entry {
-    width: 20em;
-}
-
 .login-dialog-session-list-button StIcon {
     icon-size: 1.25em;
 }
index 318bcfa02d59c4aa94e60c11511e13c8043a3867..0666294fec8647ce8bc1b519e8d9092ac74468a0 100644 (file)
@@ -96,6 +96,7 @@ const AuthPrompt = new Lang.Class({
         this._entry.grab_key_focus();
 
         this._message = new St.Label({ opacity: 0 });
+        this._message.clutter_text.line_wrap = true;
         this.actor.add(this._message, { x_fill: true });
 
         this._loginHint = new St.Label({ style_class: 'login-dialog-prompt-login-hint-message' });